import { get, post } from '@/utils/axios'

const prefixUrl = '/sys/department/'

/** 部门树 */
export const depTree = () => {
  return get(`${prefixUrl}tree`)
}

/** 删除部门 */
export const deleteDep = (formId) => {
  return post(`${prefixUrl}del`, { formId })
}
